package com.workday.gridsimulator

/**
 * Implements the WorkCreation trait.
 * 
 * Singleton for generating SimpleJob's
 */
object SimpleJobCreation extends WorkCreation {

  override def generateWork(avgLength: Double, workCount: Int, arrivalRate: Int): Seq[Work] = {
    var arrivalTime = 60.0/arrivalRate   			//how many jobs arrive per minute
    
    for (i <- 1 to workCount) yield {
      new SimpleJob(i, 0.0, arrivalTime, avgLength)
    }
  }

}